package com.kuiandjie.service;

import java.util.List;

import com.kuiandjie.dao.ContactDao;
import com.kuiandjie.entity.Contact;

public class ConcatService {
	private ContactDao dao = new ContactDao();
	
	public List<Contact> findContactByProjectId(int id) {
		return dao.getContactByProId(id);
	}
	
	public int insertContact(Contact contact) {
		return dao.setContact(contact);
	}

	public Contact findContactById(int id) {
		return dao.getContactById(id);
	}

	public Contact findContactByIdAndProId(int id, int id2) {
		return dao.getContactByIdAndProId(id, id2);
	}

	public void editContact(Contact c) {
		dao.updateContact(c);
	}

	public void deleteById(int id) {
		dao.deleteById(id);
	}
}
